package com.bruce.download.util;

import java.io.File;

/**
 * 文件工具类
 * <br>CreateDate  2021/09/14 16:46:41
 *
 * @author luotuan
 * @version 1.0.0
 */
public class FileUtils {
    public static long getFileContentLength(String fileName) {
        File file = new File(fileName);
        return file.exists() && file.isFile() ? file.length() : 0;
    }
}
